<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>财务管理 - 导出资金明细</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
<link rel="stylesheet" type="text/css" href="/style/assets/plugins/bootstrap-datetimepicker/css/datetimepicker.css" />
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/head.php');?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" > 
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include($this->c['_homes']['_viewsHome'].'/_global/menu.php');?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR --> 
  <!-- BEGIN PAGE -->
  <div class="page-content"> 
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 导出资金明细</h3>
        <ul class="page-breadcrumb breadcrumb">
           
          <li class="btn-group">
            <button type="button" class="btn blue dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"> <span>操作</span> <i class="icon-angle-down"></i> </button>
            <ul class="dropdown-menu pull-right" role="menu">
              <?php if($this->pv['export']){?>
             <!--   <li><a href="/order/export?type=1"> <i class="icon-download-alt"></i>导出全部订单</a></li> -->
              <li><a href="export"> <i class="icon-download-alt"></i>导出资金明细</a></li>
              
             <?php }?>
            </ul>
          </li>
         
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> 财务管理 <i class="icon-angle-right"></i> </li>
          <li> <a href="/finance/finance_detail">资金明细</a> <i class="icon-angle-right"></i> </li>
          <li>导出资金明细</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
    </div>
    <!-- END PAGE HEADER--> 
    <!-- BEGIN PAGE CONTENT-->
    
    <div class="row">
      <div class="col-md-9"> 
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <div class="portlet box blue">
          <div class="portlet-title">
            <div class="caption"> <i class="icon-reorder"></i> 导出资金明细  </div>
            <div class="tools"> <a href="" class="collapse"></a> </div>
          </div>
          <div class="portlet-body form">
            <form method="get" class="form-horizontal" id="forms" action="exportdetail">              
              <div class="form-body">
                <div class="form-group">
                  <label class="col-md-3 control-label">开始时间</label>
                  <div class="col-md-6">
                    <div class="input-group date form_datetime" data-date="<?=date("Y-m-d\TH:i\Z");?>">
                            <input type="text" size="16" name="start_time" placeholder="选择开始时间" id="start_time" readonly class="form-control">
                            <span class="input-group-btn">
                            <button class="btn default date-reset" type="button"><i class="icon-remove"></i></button>
                            </span> <span class="input-group-btn">
                            <button class="btn default date-set" type="button"><i class="icon-calendar"></i></button>
                            </span> </div>
                  </div>
                </div>
                
                <div class="form-group">
                  <label class="col-md-3 control-label">结束时间</label>
                  <div class="col-md-6">
                    <div class="input-group date form_datetime" data-date="<?=date("Y-m-d\TH:i\Z");?>">
                            <input type="text" size="16" name="end_time" placeholder="选择结束时间" id="end_time" readonly class="form-control">
                            <span class="input-group-btn">
                            <button class="btn default date-reset" type="button"><i class="icon-remove"></i></button>
                            </span> <span class="input-group-btn">
                            <button class="btn default date-set" type="button"><i class="icon-calendar"></i></button>
                            </span> </div>
                  </div>
                </div>
                <div class="form-group">
                <label class="col-md-3 control-label">关键字</label>
                  <div class="col-md-4">
                   <div class="input-cont">
                    <input class="form-control" name="keyword" placeholder="手机号码/昵称/姓名/推荐码" value="<?=$_GET['keyword'];?>" type="text">
                  </div>
                  </div>
                </div>
               <div class="form-group">
                  <label class="col-md-3 control-label">类型</label>
                  <div class="col-md-3">
                     <select class="form-control" name="event" id="event">
                    <option value="">类型</option>
                    <?php
          					if($this->c['stat']['finance']){
          						foreach($this->c['stat']['finance'] as $k=> $r){
          							if(isset($this->data['para']['event']) && $k==$this->data['para']['event']) $slk = ' selected';
          							else $slk = '';
          							?>
                        <option value="<?=$k;?>"<?=$slk;?>><?=$r;?></option>
                        <?
          						}
          					}
          					?>
                 </select>
                  </div>
                </div> 
              </div>
              <div class="form-actions fluid">
                <div class="col-md-offset-3 col-md-9">
                  <button type="button" class="btn blue" onclick="chkfrm()">导出资金明细 </button>
                  <button type="button" class="btn default" onClick="history.back(1);">取消</button>
                </div>
              </div>
            </form>
          </div>
        </div>
        <!-- END SAMPLE FORM PORTLET--> 
        
      </div>
    </div>
    <!-- END PAGE CONTENT--> 
  </div>
  <!-- END PAGE --> 
</div>
<!-- END CONTAINER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/_footer.php');?>
<script type="text/javascript" src="/style/assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script> 
<script type="text/javascript" src="/style/assets/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script>
var handleDatetimePicker = function () {
  $(".form_datetime").datetimepicker({
    language:'zh-CN',
    autoclose: true,
    format: "yyyy-mm-dd hh:ii"
  }); 
  $('body').removeClass("modal-open"); // fix bug when inline picker is used in modal
}
$(document).ready(function(e) {    
   App.init();  
   handleDatetimePicker();  
});

function chkfrm()
{

  if( $("#start_time").prop("value")=="")
  {
	  alert("请选择开始时间");
    return false;
  }

  if( $("#end_time").prop("value")=="")
  {
	  alert("请选择结束时间");
    return false;
  }

  $('#forms').submit();
}

</script> 
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>